<?php

class Application_Model_DbTable_Admin extends Zend_Db_Table_Abstract
{

    protected $_name = 'admin';
	
	public function getAdmins() {
		$select  = $this->_db->select()
			->from($this->_name);

		$result = $this->getAdapter()->fetchAll($select);

		return $result;
	}
	// getIdAdminFromName
	public function getIdAdminFromName($nombre) {
		$select  = $this->_db->select()
			->from($this->_name)->where('nombre = ?', $nombre);

		$result = $this->getAdapter()->fetchAll($select);

		return $result;
	}

}

